﻿#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QDesktopWidget>
#include <QCamera>
#include <QCameraViewfinder>
#include <QCameraImageCapture>
#include <QTextToSpeech>
#include <QTimer>

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

protected:
    void keyPressEvent(QKeyEvent *e);

private slots:
    void capturedisplayImg(int, QImage image);
    void on_btn_close_clicked();
    void focusSet();

private:
    QDesktopWidget* desktopWidget;
    QCameraViewfinder *m_cameraView;
    QCamera* m_camera;
    QCameraImageCapture *m_capture;
    qint64 m_temptime;
    //tts
    QTextToSpeech m_speek;
    QTimer m_timer;
    QTimer m_timer1;
private:
    Ui::MainWindow *ui;
};

#endif // MAINWINDOW_H
